/******************************************************************************
	This file is a part of the Snapshot Bioinformatics Project

	Copyright (C) 2012-2013 Jarom Schow

    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.
******************************************************************************/
#ifndef ESUMMARY_H
#define ESUMMARY_H

#include "Entrez.h"

namespace Bio {

class BIO_EXPORT ESummary : public Entrez {
public:
	ESummary();
	ESummary( const QString &db, const QString &id );
	ESummary( const QString &db, const QStringList &ids );
	ESummary( const QString &db, int queryKey, const QString &webEnv );
	virtual ~ESummary();

	virtual bool	exec();

	void	setDatabase( const QString &db );
	QString	getDatabase() const;

	void		setIDs( const QStringList &ids );
	QStringList	getIDs() const;
	void		addID( const QString &id );

	void	setHistory( int queryKey, const QString &webEnv );
	int		getQueryKey() const;
	QString	getWebEnv() const;

	void	setRetStart( int num );
	int		getRetStart() const;

	void	setRetMax( int num );
	int		getRetMax() const;

private:

	QString		m_db, m_webEnv;
	int			m_queryKey, m_retStart, m_retMax;
	QStringList	m_ids;
};

}; // Bio

#endif // ENTREZ_H